package extreme.fizzbuzz;

public class FizzBuzz {

    public static final String FIZZ = "Fizz";
    public static final int FIZZ_NUMBER = 3;

    public String say(int number) {
        if (isModByThree(number)) {
            return FIZZ;
        }
        return String.valueOf(number);
    }

    private boolean isModByThree(int number) {
        return number % FIZZ_NUMBER == 0;
    }
}
